package valutatore;

import java.util.ArrayList;

public class Args {

	private ArrayList<Expr> exprs;
	
	public Args(ArrayList<Expr> exprs) {
		this.exprs = exprs;
	}

	public ArrayList<Value> values(Env env) {
		ArrayList<Value> values = new ArrayList<Value>(exprs.size());
		for (Expr expr : exprs) {
			values.add(expr.eval(env));
		}
		return values;
	}
}
